home *** CD-ROM | disk | FTP | other *** search
/ Computer Inter@ctive 17 / Computer Interactive cdrom 17 - gen 99.iso / ZDNETIT / CONTENT / IMSWBPRO.ZIP / _setup.1 / Motions.js < prev    next >
Encoding:
Text File  |  1998-09-01  |  8.1 KB  |  470 lines

  1. //<!-- 
  2. //***Virtual Mechanics IMS JavaScript. Project Title: Motions
  3. mW = window.screen.width;
  4. mH = window.screen.height;
  5. //window.style.display = "none"; 
  6. mS = 1.0; 
  7. //mS = 0.64; 
  8. //if(mW > 0) mS = mW / 800;
  9.  
  10. totAtr = 5;
  11.  
  12. totEvt = 1;
  13. AEvent[1]=0;
  14. ATime[1]=0;
  15. AValue[1]=0;
  16. DEvent[1]=0;
  17. DTime[1]=0;
  18. DValue[1]=0;
  19. WAEvent[1]=30;
  20. WDEvent[1]=-1073741794;
  21. WASOp[1]=0;
  22. WAGOp[1]=0;
  23. OpForm[1]=0;
  24. WAForm[1]=0;
  25. WACatt[1]=0;
  26. WACgeo[1]=0;
  27. WACact[1]=0;
  28. WACsnd[1]=77;
  29. WACevt[1]=0;
  30. WACobj[1]=0;
  31. WALink[1]=" ";
  32.  
  33. totPath = 11;
  34. Gtyp[1] = 3
  35. Glen[1] = mS*1986;
  36. Gszx[1]=mS*334;
  37. Gszy[1]=mS*205;
  38. Gorx[1]=mS*0;
  39. Gory[1]=mS*1;
  40. Gpxl[1] = new Array();
  41. Gpyl[1] = new Array();
  42. Gnpt[1] = 6;
  43. Gpxl[1][0]=mS*-334;
  44. Gpyl[1][0]=mS*-71;
  45. Gpxl[1][1]=mS*-32;
  46. Gpyl[1][1]=mS*-205;
  47. Gpxl[1][2]=mS*306;
  48. Gpyl[1][2]=mS*-80;
  49. Gpxl[1][3]=mS*334;
  50. Gpyl[1][3]=mS*206;
  51. Gpxl[1][4]=mS*45;
  52. Gpyl[1][4]=mS*-42;
  53. Gpxl[1][5]=mS*-284;
  54. Gpyl[1][5]=mS*165;
  55. Gtyp[2] = 1;
  56. Glen[2] = mS*260;
  57. Gszx[2]=mS*53;
  58. Gszy[2]=mS*12;
  59. Gorx[2]=mS*0;
  60. Gory[2]=mS*0;
  61. Gpxl[2] = new Array(); 
  62. Gpyl[2] = new Array(); 
  63. Gnpt[2] = 2;
  64. Gpxl[2][0]=mS*-53;
  65. Gpyl[2][0]=mS*-12;
  66. Gpxl[2][1]=mS*53;
  67. Gpyl[2][1]=mS*12;
  68. Gtyp[3] = 1;
  69. Glen[3] = mS*284;
  70. Gszx[3]=mS*46;
  71. Gszy[3]=mS*25;
  72. Gorx[3]=mS*0;
  73. Gory[3]=mS*0;
  74. Gpxl[3] = new Array(); 
  75. Gpyl[3] = new Array(); 
  76. Gnpt[3] = 2;
  77. Gpxl[3][0]=mS*-46;
  78. Gpyl[3][0]=mS*-25;
  79. Gpxl[3][1]=mS*46;
  80. Gpyl[3][1]=mS*25;
  81. Gtyp[4] = 1;
  82. Glen[4] = mS*400;
  83. Gszx[4]=mS*50;
  84. Gszy[4]=mS*50;
  85. Gorx[4]=mS*0;
  86. Gory[4]=mS*0;
  87. Gpxl[4] = new Array(); 
  88. Gpyl[4] = new Array(); 
  89. Gnpt[4] = 2;
  90. Gpxl[4][0]=mS*-50;
  91. Gpyl[4][0]=mS*-50;
  92. Gpxl[4][1]=mS*50;
  93. Gpyl[4][1]=mS*50;
  94. Gtyp[5] = 2;
  95. Glen[5] = mS*360; 
  96. Gszx[5]=mS*50;
  97. Gszy[5]=mS*50;
  98. Gorx[5]=mS*0;
  99. Gory[5]=mS*0;
  100. Gpxl[5] = new Array(); 
  101. Gpyl[5] = new Array(); 
  102. Gnpt[5] = 2;
  103. Gpxl[5][0]=mS*-50; 
  104. Gpyl[5][0]=mS*-50; 
  105. Gpxl[5][1]=mS*100; 
  106. Gpyl[5][1]=mS*100; 
  107. Gtyp[6] = 1;
  108. Glen[6] = mS*192;
  109. Gszx[6]=mS*31;
  110. Gszy[6]=mS*17;
  111. Gorx[6]=mS*0;
  112. Gory[6]=mS*0;
  113. Gpxl[6] = new Array(); 
  114. Gpyl[6] = new Array(); 
  115. Gnpt[6] = 2;
  116. Gpxl[6][0]=mS*-31;
  117. Gpyl[6][0]=mS*-17;
  118. Gpxl[6][1]=mS*31;
  119. Gpyl[6][1]=mS*17;
  120. Gtyp[7] = 1;
  121. Glen[7] = mS*244;
  122. Gszx[7]=mS*36;
  123. Gszy[7]=mS*25;
  124. Gorx[7]=mS*0;
  125. Gory[7]=mS*0;
  126. Gpxl[7] = new Array(); 
  127. Gpyl[7] = new Array(); 
  128. Gnpt[7] = 2;
  129. Gpxl[7][0]=mS*-36;
  130. Gpyl[7][0]=mS*-25;
  131. Gpxl[7][1]=mS*36;
  132. Gpyl[7][1]=mS*25;
  133. Gtyp[8] = 1;
  134. Glen[8] = mS*372;
  135. Gszx[8]=mS*81;
  136. Gszy[8]=mS*12;
  137. Gorx[8]=mS*0;
  138. Gory[8]=mS*0;
  139. Gpxl[8] = new Array(); 
  140. Gpyl[8] = new Array(); 
  141. Gnpt[8] = 2;
  142. Gpxl[8][0]=mS*-81;
  143. Gpyl[8][0]=mS*-12;
  144. Gpxl[8][1]=mS*81;
  145. Gpyl[8][1]=mS*12;
  146. Gtyp[9] = 1;
  147. Glen[9] = mS*1900;
  148. Gszx[9]=mS*219;
  149. Gszy[9]=mS*256;
  150. Gorx[9]=mS*0;
  151. Gory[9]=mS*0;
  152. Gpxl[9] = new Array(); 
  153. Gpyl[9] = new Array(); 
  154. Gnpt[9] = 2;
  155. Gpxl[9][0]=mS*-219;
  156. Gpyl[9][0]=mS*-256;
  157. Gpxl[9][1]=mS*219;
  158. Gpyl[9][1]=mS*256;
  159. Gspt[10]=new Image();
  160. Gspt[10].src="../../pics/icons/shapes/vertdivi.gif";
  161. Gtyp[10] = 1;
  162. Glen[10] = mS*40;
  163. Gszx[10]=mS*6;
  164. Gszy[10]=mS*4;
  165. Gorx[10]=mS*0;
  166. Gory[10]=mS*0;
  167. Gpxl[10] = new Array(); 
  168. Gpyl[10] = new Array(); 
  169. Gnpt[10] = 2;
  170. Gpxl[10][0]=mS*-6;
  171. Gpyl[10][0]=mS*-4;
  172. Gpxl[10][1]=mS*6;
  173. Gpyl[10][1]=mS*4;
  174. Gspt[11]=new Image();
  175. Gspt[11].src="../clipart/vertyell.gif";
  176. Gtyp[11] = 1;
  177. Glen[11] = mS*1168;
  178. Gszx[11]=mS*9;
  179. Gszy[11]=mS*283;
  180. Gorx[11]=mS*0;
  181. Gory[11]=mS*0;
  182. Gpxl[11] = new Array(); 
  183. Gpyl[11] = new Array(); 
  184. Gnpt[11] = 2;
  185. Gpxl[11][0]=mS*-9;
  186. Gpyl[11][0]=mS*-283;
  187. Gpxl[11][1]=mS*9;
  188. Gpyl[11][1]=mS*283;
  189.  
  190. totAct = 8;
  191. MType[1]=16777473;
  192. MPath[1]=1;
  193. MRate[1]=4;
  194. MDelay[1]=0;
  195. MRepeat[1]=-1;
  196. MCount[1]=-1;
  197. MGWst[1]=0;
  198. MGNth[1]=0;
  199. MGEst[1]=0;
  200. MGSth[1]=0;
  201. MType[2]=16781328;
  202. MPath[2]=0;
  203. MRate[2]=10;
  204. MDelay[2]=0;
  205. MRepeat[2]=-1;
  206. MCount[2]=-1;
  207. MGWst[2]=0;
  208. MGNth[2]=0;
  209. MGEst[2]=0;
  210. MGSth[2]=0;
  211. MType[3]=16777473;
  212. MPath[3]=4;
  213. MRate[3]=7;
  214. MDelay[3]=0;
  215. MRepeat[3]=-1;
  216. MCount[3]=-1;
  217. MGWst[3]=0;
  218. MGNth[3]=0;
  219. MGEst[3]=0;
  220. MGSth[3]=0;
  221. MType[4]=16777473;
  222. MPath[4]=5;
  223. MRate[4]=10;
  224. MDelay[4]=0;
  225. MRepeat[4]=-1;
  226. MCount[4]=-1;
  227. MGWst[4]=0;
  228. MGNth[4]=0;
  229. MGEst[4]=0;
  230. MGSth[4]=0;
  231. MType[5]=16778240;
  232. MPath[5]=0;
  233. MRate[5]=10;
  234. MDelay[5]=0;
  235. MRepeat[5]=-1;
  236. MCount[5]=-1;
  237. MGWst[5]=0;
  238. MGNth[5]=0;
  239. MGEst[5]=0;
  240. MGSth[5]=0;
  241. MType[6]=16779272;
  242. MPath[6]=0;
  243. MRate[6]=10;
  244. MDelay[6]=0;
  245. MRepeat[6]=-1;
  246. MCount[6]=-1;
  247. MGWst[6]=0;
  248. MGNth[6]=0;
  249. MGEst[6]=0;
  250. MGSth[6]=0;
  251. MType[7]=33556480;
  252. MPath[7]=0;
  253. MRate[7]=10;
  254. MDelay[7]=0;
  255. MRepeat[7]=-1;
  256. MCount[7]=-1;
  257. MGWst[7]=0;
  258. MGNth[7]=0;
  259. MGEst[7]=0;
  260. MGSth[7]=0;
  261. MType[8]=67110912;
  262. MPath[8]=0;
  263. MRate[8]=10;
  264. MDelay[8]=0;
  265. MRepeat[8]=1;
  266. MCount[8]=1;
  267. MGWst[8]=0;
  268. MGNth[8]=0;
  269. MGEst[8]=0;
  270. MGSth[8]=0;
  271.  
  272. totObj = 13;
  273. obRef[1] = 1;
  274. ob[1] = new Array();
  275. ob[1].geo = 1;
  276. ob[1].att = 0;
  277. ob[1].evt = 0;
  278. ob[1].act = 0;
  279. ob[1].grp = 0;
  280. ob[1].cpox =392.000000;
  281. ob[1].cpoy =310.000000;
  282. ob[1].cscx =1.000000;
  283. ob[1].cscy =1.000000;
  284. ob[1].crot =0.000000;
  285. ob[1].val  =0;
  286. ob[1].flg  =0;
  287.  
  288. obRef[2] = 2;
  289. ob[2] = new Array();
  290. ob[2].geo = 2;
  291. ob[2].att = 0;
  292. ob[2].evt = 0;
  293. ob[2].act = 1;
  294. ob[2].grp = 0;
  295. ob[2].cpox =231.000000;
  296. ob[2].cpoy =262.000000;
  297. ob[2].cscx =1.247863;
  298. ob[2].cscy =1.320000;
  299. ob[2].crot =0.000000;
  300. ob[2].val  =0;
  301. ob[2].flg  =0;
  302.  
  303. obRef[3] = 3;
  304. ob[3] = new Array();
  305. ob[3].geo = 3;
  306. ob[3].att = 0;
  307. ob[3].evt = 0;
  308. ob[3].act = 2;
  309. ob[3].grp = 0;
  310. ob[3].cpox =429.000000;
  311. ob[3].cpoy =393.000000;
  312. ob[3].cscx =1.462579;
  313. ob[3].cscy =1.196078;
  314. ob[3].crot =0.000000;
  315. ob[3].val  =0;
  316. ob[3].flg  =0;
  317.  
  318. obRef[4] = 4;
  319. ob[4] = new Array();
  320. ob[4].geo = 4;
  321. ob[4].att = 2; 
  322. ob[4].evt = 0;
  323. ob[4].act = 2;
  324. ob[4].grp = 0;
  325. ob[4].cpox =437.000000;
  326. ob[4].cpoy =269.000000;
  327. ob[4].cscx =1.701923;
  328. ob[4].cscy =1.605769;
  329. ob[4].crot =0.000000;
  330. ob[4].val  =0;
  331. ob[4].flg  =0;
  332.  
  333. obRef[5] = 5;
  334. ob[5] = new Array();
  335. ob[5].geo = 5;
  336. ob[5].att = 3; 
  337. ob[5].evt = 0;
  338. ob[5].act = 3;
  339. ob[5].grp = 0;
  340. ob[5].cpox =678.000000;
  341. ob[5].cpoy =83.000000;
  342. ob[5].cscx =1.000000;
  343. ob[5].cscy =1.000000;
  344. ob[5].crot =0.000000;
  345. ob[5].val  =0;
  346. ob[5].flg  =0;
  347.  
  348. obRef[6] = 6;
  349. ob[6] = new Array();
  350. ob[6].geo = 6;
  351. ob[6].att = 0;
  352. ob[6].evt = 0;
  353. ob[6].act = 4;
  354. ob[6].grp = 0;
  355. ob[6].cpox =297.000000;
  356. ob[6].cpoy =433.000000;
  357. ob[6].cscx =1.110906;
  358. ob[6].cscy =1.142857;
  359. ob[6].crot =0.000000;
  360. ob[6].val  =0;
  361. ob[6].flg  =0;
  362.  
  363. obRef[7] = 7;
  364. ob[7] = new Array();
  365. ob[7].geo = 7;
  366. ob[7].att = 0;
  367. ob[7].evt = 0;
  368. ob[7].act = 5;
  369. ob[7].grp = 0;
  370. ob[7].cpox =400.000000;
  371. ob[7].cpoy =300.000000;
  372. ob[7].cscx =1.000000;
  373. ob[7].cscy =1.000000;
  374. ob[7].crot =0.000000;
  375. ob[7].val  =0;
  376. ob[7].flg  =0;
  377.  
  378. obRef[8] = 8;
  379. ob[8] = new Array();
  380. ob[8].geo = 7;
  381. ob[8].att = 0;
  382. ob[8].evt = 0;
  383. ob[8].act = 7;
  384. ob[8].grp = 0;
  385. ob[8].cpox =394.000000;
  386. ob[8].cpoy =304.000000;
  387. ob[8].cscx =0.835616;
  388. ob[8].cscy =1.000000;
  389. ob[8].crot =0.000000;
  390. ob[8].val  =0;
  391. ob[8].flg  =0;
  392.  
  393. obRef[9] = 9;
  394. ob[9] = new Array();
  395. ob[9].geo = 7;
  396. ob[9].att = 0;
  397. ob[9].evt = 0;
  398. ob[9].act = 6;
  399. ob[9].grp = 0;
  400. ob[9].cpox =396.000000;
  401. ob[9].cpoy =302.000000;
  402. ob[9].cscx =0.822139;
  403. ob[9].cscy =1.000000;
  404. ob[9].crot =0.000000;
  405. ob[9].val  =0;
  406. ob[9].flg  =0;
  407.  
  408. obRef[10] = 10;
  409. ob[10] = new Array();
  410. ob[10].geo = 8;
  411. ob[10].att = 0;
  412. ob[10].evt = 0;
  413. ob[10].act = 8;
  414. ob[10].grp = 0;
  415. ob[10].cpox =310.000000;
  416. ob[10].cpoy =57.000000;
  417. ob[10].cscx =1.795337;
  418. ob[10].cscy =1.800000;
  419. ob[10].crot =0.000000;
  420. ob[10].val  =0;
  421. ob[10].flg  =0;
  422.  
  423. obRef[11] = 11;
  424. ob[11] = new Array();
  425. ob[11].geo = 9;
  426. ob[11].att = 0;
  427. ob[11].evt = 0;
  428. ob[11].act = 0;
  429. ob[11].grp = 0;
  430. ob[11].cpox =72.000000;
  431. ob[11].cpoy =538.000000;
  432. ob[11].cscx =0.288231;
  433. ob[11].cscy =1.694323;
  434. ob[11].crot =0.000000;
  435. ob[11].val  =0;
  436. ob[11].flg  =0;
  437.  
  438. obRef[12] = 12;
  439. ob[12] = new Array();
  440. ob[12].geo = 10;
  441. ob[12].att = 4; 
  442. ob[12].evt = 0;
  443. ob[12].act = 0;
  444. ob[12].grp = 0;
  445. ob[12].cpox =400.000000;
  446. ob[12].cpoy =300.000000;
  447. ob[12].cscx =1.000000;
  448. ob[12].cscy =1.000000;
  449. ob[12].crot =0.000000;
  450. ob[12].val  =0;
  451. ob[12].flg  =0;
  452.  
  453. obRef[13] = 13;
  454. ob[13] = new Array();
  455. ob[13].geo = 11;
  456. ob[13].att = 5; 
  457. ob[13].evt = 0;
  458. ob[13].act = 0;
  459. ob[13].grp = 0;
  460. ob[13].cpox =144.000000;
  461. ob[13].cpoy =385.000000;
  462. ob[13].cscx =1.000000;
  463. ob[13].cscy =1.000000;
  464. ob[13].crot =0.000000;
  465. ob[13].val  =0;
  466. ob[13].flg  =0;
  467.  
  468.  
  469. //--> 
  470.